import type { GlobConfig, GlobEnvConfig } from '@/./../types/config'
import { getAppConfig } from '@/utils'

export const useGlobSetting = (): Readonly<GlobEnvConfig> => {
  const { baseUrl, title, shortName, apiUrl, urlPrefix } = getAppConfig()
  const glob: Readonly<GlobConfig> = { title, baseUrl, shortName, apiUrl, urlPrefix }
  return glob as unknown as Readonly<GlobEnvConfig>
}
